package com.sky.mapper;

import com.sky.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    /**
     * 
     * @param openId
     * @return
     */
    @Select("select * from user where openid = #{openid}")
    User getByOpenid(String openId);

    /**
     * 新增用户
     * @param user
     */

    void insert(User user);
}
